package br.org.acessobrasil.portal.vista;

import java.sql.ResultSet;

import br.com.goals.tableedit.model.FieldConfig;
import br.com.goals.tableedit.model.TableToHtml;
import br.com.goals.tableedit.util.CustomHtmlRender;

public class MenuTitulo implements CustomHtmlRender {

	
	public String getHtml(TableToHtml tabela, FieldConfig fieldConfig, ResultSet rs) {
		String retorno="";
		try {
			retorno=rs.getString("no_titulo");
			retorno=retorno.replace(" ","&nbsp;");
			int nivel = rs.getInt("nu_nivel");
			for(int i=1;i<nivel;i++){
				retorno="&nbsp;--&nbsp;"+retorno;
			}
		} catch (Exception e) {
			e.printStackTrace();
		} 
		return retorno;
	}
}
